package com.property.mapper;

import com.property.pojo.Building;
import com.property.pojo.Resident;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface BuildingMapper {
    //查询所有的信息
    List<Building> findAllBuilding();
    //查询所有的房屋包括住户
    List<Building> findAllBuildingResident();
    //添加房间信息
    int saveBuilding(Building building);
    //根据id查询房屋信息
    Building findBuildingBybId(Integer bId);
    //更新房屋信息
    int updateBuilding(Building building);
    //删除房屋信息
    int deleteBuilding(Integer bId);
}
